package com.guodu.vo;

import java.text.DecimalFormat;

import com.guodu.entity.MaterialChaoshi;

public class MaterialChaoshiVo {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private MaterialChaoshi materialChaoshi;
	
	private String unitsName;
	
	private String funitsName;
	
	private Long funitsId;
	
	private Long unitsId;
	
	private String industry;
	
	private String userName;
	
	private String shelvesCount;
	
	private String price;
	
	private String shelvesMoney;
	
	private String ljCount;
	
	private String ljMoney;
	

	public MaterialChaoshiVo(MaterialChaoshi materialChaoshi){
		DecimalFormat df = new DecimalFormat("##,###.##");
		if(materialChaoshi.getShelvesCount()!=null)
		this.shelvesCount = df.format(materialChaoshi.getShelvesCount());
		if(materialChaoshi.getShelvesMoney()!=null)
		this.shelvesMoney = df.format(materialChaoshi.getShelvesMoney());
		if(materialChaoshi.getPrice()!=null)
		this.price = df.format(materialChaoshi.getPrice());
		if(materialChaoshi.getLjCount()!=null)
		this.ljCount = df.format(materialChaoshi.getLjCount());
		if(materialChaoshi.getLjMoney()!=null)
		this.ljMoney = df.format(materialChaoshi.getLjMoney());
		if(materialChaoshi.getShelvesCount()!=null)
		this.materialChaoshi = materialChaoshi;
	}
	
	public MaterialChaoshi getMaterialChaoshi() {
		return materialChaoshi;
	}
	
	public Long getFunitsId() {
		return funitsId;
	}

	public void setFunitsId(Long funitsId) {
		this.funitsId = funitsId;
	}

	public Long getUnitsId() {
		return unitsId;
	}

	public void setUnitsId(Long unitsId) {
		this.unitsId = unitsId;
	}

	public void setMaterialChaoshi(MaterialChaoshi materialChaoshi) {
		this.materialChaoshi = materialChaoshi;
	}

	public String getUnitsName() {
		return unitsName;
	}

	public void setUnitsName(String unitsName) {
		this.unitsName = unitsName;
	}

	public String getFunitsName() {
		return funitsName;
	}

	public void setFunitsName(String funitsName) {
		this.funitsName = funitsName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getIndustry() {
		return industry;
	}

	public void setIndustry(String industry) {
		this.industry = industry;
	}

	public String getShelvesCount() {
		return shelvesCount;
	}

	public void setShelvesCount(String shelvesCount) {
		this.shelvesCount = shelvesCount;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getShelvesMoney() {
		return shelvesMoney;
	}

	public void setShelvesMoney(String shelvesMoney) {
		this.shelvesMoney = shelvesMoney;
	}

	public String getLjCount() {
		return ljCount;
	}

	public void setLjCount(String ljCount) {
		this.ljCount = ljCount;
	}

	public String getLjMoney() {
		return ljMoney;
	}

	public void setLjMoney(String ljMoney) {
		this.ljMoney = ljMoney;
	}
	
	
	
	
	
}
